﻿using System;
using AnimatingHair.Entity;
using OpenTK;
using AnimatingHair.Auxiliary;

namespace AnimatingHair.Initializing
{
    class SceneInitializer
    {
        private Scene scene;
        private HairInitializer hairInitializer = new HairInitializer();
        private BustInitializer bustInitializer = new BustInitializer();

        internal Scene InitializeScene()
        {
            scene = new Scene
                    {
                        Bust = bustInitializer.InitializeBust()
                    };

            scene.Hair = hairInitializer.InitializeHair( scene );

            //scene.Bust.Particles = scene.Hair.Particles;

            // TODO: spravit nejak slusne argumenty voxel gridu (najlepsie v zavislosti na scene)
            scene.VoxelGrid = new VoxelGrid( scene.Hair.H2, new double[] { 5, 8, 5 }, new Vector3d( -3, -5, -2 ) );

            return scene;
        }
    }
}
